package com.example.springbott.wx_bean_heheer.order;

import com.example.springbott.wx_bean_heheer.OrderDetailVODate;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

/**
 * @author 1784549954@qq.com
 * @since 2022/11/22 21:25
 */
public class OrderDetailOrderInfo {
    private String consignee;
    private String address;
    private String addTime;
    private String orderSn;
    private BigDecimal actualPrice;
    private String mobile;
    private String message;
    private String orderStatusText;
    private Integer aftersaleStatus;
    private Double goodsPrice;
    private Double couponPrice;
    private Integer id;
    private Double freightPrice;
    private HandleOptionBean handleOption;
    private Integer status;
    private String expNo;
    private String expName;
    private String expCode;



    public String getExpNo() {
        return expNo;
    }

    public void setExpNo(String expNo) {
        this.expNo = expNo;
    }

    public String getExpName() {
        return expName;
    }

    public void setExpName(String expName) {
        if ("ZTO".equals(expName)){
            this.expName = "中通速递";
        }else if ("YTO".equals(expName)){
            this.expName = "圆通速递";
        }else if ("EMS".equals(expName)){
            this.expName = "EMS";
        }else if ("YD".equals(expName)){
            this.expName = "韵达快递";
        }else if ("ZJS".equals(expName)){
            this.expName = "宅急送";
        }else if ("DBL".equals(expName)){
            this.expName = "德邦快递";
        }else if ("FAST".equals(expName)){
            this.expName = "快捷快递";
        }else if ("YZPY".equals(expName)){
            this.expName = "邮政快递包裹";
        }else if ("TNT".equals(expName)){
            this.expName = "TNT快递";
        }else if ("UP".equals(expName)){
            this.expName = "UPS";
        }else if ("DHL".equals(expName)){
            this.expName = "DHL";
        }else if ("FEDEX".equals(expName)){
            this.expName = "FEDEX联邦（国内件）";
        }else if ("FEDEX_GJ".equals(expName)){
            this.expName = "FEDEX联邦（国际件）";
        }

    }

    public String getExpCode() {
        return expCode;
    }

    public void setExpCode(String expCode) {
        this.expCode = expCode;
    }

    public String getConsignee() {
        return consignee;
    }

    public void setConsignee(String consignee) {
        this.consignee = consignee;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getAddTime() {
        return addTime;
    }

    public void setAddTime(String addTime) {
        this.addTime = addTime;
    }

    public String getOrderSn() {
        return orderSn;
    }

    public void setOrderSn(String orderSn) {
        this.orderSn = orderSn;
    }

    public BigDecimal getActualPrice() {
        return actualPrice;
    }

    public void setActualPrice(BigDecimal actualPrice) {
        this.actualPrice = actualPrice;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getOrderStatusText() {
        return orderStatusText;
    }

    public void setOrderStatusText(String orderStatusText) {
        if(orderStatusText.equals("101")){
            this.orderStatusText = "待付款";
        }else if (orderStatusText.equals("201")){
            this.orderStatusText = "已付款";
        }else if (orderStatusText.equals("301")){
            this.orderStatusText = "已发货";
        }else if (orderStatusText.equals("401")){
            this.orderStatusText = "已收货";
        }else if(orderStatusText.equals("203")){
            this.orderStatusText = "已退款";
        }else if (orderStatusText.equals("103")){
            this.orderStatusText = "系统已取消";
        }else if (orderStatusText.equals("102")){
            this.orderStatusText = "用户已取消";
        }else if (orderStatusText.equals("202")){
            this.orderStatusText = "已售后正在退款中";
        }else if (orderStatusText.equals("402")){
            this.orderStatusText = "系统收货";
        }else if (orderStatusText.equals("403")){
            this.orderStatusText = "已申请售后";
        }
    }

    public Integer getAftersaleStatus() {
        return aftersaleStatus;
    }

    public void setAftersaleStatus(Integer aftersaleStatus) {
        this.aftersaleStatus = aftersaleStatus;
    }

    public Double getGoodsPrice() {
        return goodsPrice;
    }

    public void setGoodsPrice(Double goodsPrice) {
        this.goodsPrice = goodsPrice;
    }

    public Double getCouponPrice() {
        return couponPrice;
    }

    public void setCouponPrice(Double couponPrice) {
        this.couponPrice = couponPrice;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Double getFreightPrice() {
        return freightPrice;
    }

    public void setFreightPrice(Double freightPrice) {
        this.freightPrice = freightPrice;
    }

    public HandleOptionBean getHandleOption() {
        return handleOption;
    }

    public void setHandleOption(HandleOptionBean handleOption) {
        this.handleOption = handleOption;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
}
